<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@page import="dyyx.dto.*"%>
<%@page import="dyyx.util.*"%>
<%@page import="java.util.*"%>



<%

WebResult webResult = new WebResult();
JmxViewWebUtil.run(request, webResult);
List<String> mbeanNameList = webResult.mbeanNameList;
if(mbeanNameList==null){
	mbeanNameList = new ArrayList<String>();
}

Map<String,Map<String,Object>> mbeanInfoMap = webResult.mbeanInfoMap;
if(mbeanInfoMap==null){
	mbeanInfoMap = new HashMap<String,Map<String,Object>>();
}
Set<String> mbeanNames = mbeanInfoMap.keySet();

// String op = WebUtil.get(request, "op");


%>

<style>

  table{
            border-collapse: collapse;
            border: none;
            width: 100%;
        }
        td{
            border: solid gray 1px;
            vertical-align: top;
            padding:7px;
        }

        .title td{
            height:39px;
            text-align:left;
            font-weight:bold;
            background-color:silver;
             vertical-align: middle;

        }
</style>


<hr>


<%=new Date() %> 
<hr>
op <%=webResult.op %> <br>

<%=webResult.msg %>

<hr>

<%if("queryMbean".equals(webResult.op)){ %>



<%for(String item:mbeanNameList){ %>
 <a href="result.jsp?op=queryMbeanInfo&q=<%=item%>"><%=item %> </a> <br>

<%}%>


<%}%>



<%

if("queryMbeanInfo".equals(webResult.op)){ 
   int index = 1;
%>

<table>

<tr>
  <td>index</td>
  <td>mbeanName</td>
  <td>mbeanInfo</td>
</tr>


<%for(String item:mbeanNames){ %>
 
 <tr>
  <td><%=index %></td>
  <td><%=item %></td>
  <td><%=mbeanInfoMap.get(item)%></td>
</tr>

<%
index++;
}

%>


</table>


<%}%>


<hr>
<br><br><br>
